package com.sxkiler.demo.maintest.management;


import com.sxkiler.demo.maintest.management.CPUMonitorCalc;

public class ArticleApplication {
    public static void main(String[] args) throws Exception {
        for (int i = 0; i < 1; i++) {
            new Thread(() -> {
                System.out.println("=============="+Thread.currentThread().getId());
                while (true) {
                    long bac = 1000000;
                    bac = bac >> 1;
                }
            }).start();;
        }

        while (true) {
            Thread.sleep(3000);
            CPUMonitorCalc calc = new CPUMonitorCalc();
            calc.getCpuRate();
        }

    }
}